<?php
/**
 * Created by PhpStorm.
 * User: fuguang
 * Date: 2017/6/2
 * Time: 上午9:28
 */

namespace common\controllers;

use yii\web\Controller;
use Yii;


class FrontendController extends Controller
{

    /**
     * @inheritdoc
     */
    public function beforeAction($action)
    {

        return true;
    }

    /**
     * 生成手机验证码
     */
    protected function createCode(){
        $code = rand(100000,999999);
        return (string) $code;
    }

    /**
     * 发送手机验证码
     */
    protected function sendCode($mobile,$content){
        return true;
    }

    /**
     * 验证手机验证码
     */
    protected function verifyCode(){

    }
}